<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-select v-model="q.type">
                        <i-option value="1">每日签到</i-option>
                        <i-option value="10">发帖</i-option>
                        <i-option value="15">评论</i-option>
                        <i-option value="20">点赞</i-option>
                        <i-option value="40">跑步打卡分享</i-option>
                        <i-option value="41">精选内容</i-option>
                    </i-select>
                </i-col>
                <i-col span="2">
                    <i-input v-model="q.uid" @on-enter="query" placeholder="用户编号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("incomecointask:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("incomecointask:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("incomecointask:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("incomecointask:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
    <Card v-show="showList">
        <div class="search-group">
            <i-col span="2">
                <i-input v-model="uid"  placeholder="用户编号"/>
            </i-col>
            <i-col span="3">
                <i-select v-model="dataType" placeholder="类型名称" filterable>
                    <i-option value="1">每日签到</i-option>
                    <i-option value="10">发帖</i-option>
                    <i-option value="15">评论</i-option>
                    <i-option value="20">点赞</i-option>
                    <i-option value="40">跑步打卡分享</i-option>
                    <i-option value="41">精选内容</i-option>
                </i-select>
            </i-col>
            <i-col span="">
                <Date-picker v-model="beginDate" type="datetime" format="yyyy-MM-dd HH:mm:ss"
                             placeholder="开始时间"></Date-picker>
            </i-col>
            <i-col span="4">
                <Date-picker v-model="endDate" type="datetime" format="yyyy-MM-dd HH:mm:ss"
                             placeholder="结束时间"></Date-picker>
            </i-col>&nbsp;&nbsp;
            <i-col span="3">
                <i-input v-model="data" placeholder="结果值"/>
            </i-col>
            <i-button @click="queryData">查询</i-button>
        </div>
    </Card>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="incomecointask" :rules="ruleValidate" :label-width="80">
            <Form-item label="获取描述" prop="name">
                <i-input v-model="incomecointask.name" placeholder="获取描述"/>
            </Form-item>
            <Form-item label="所得积分" prop="integral">
                <i-input v-model="incomecointask.integral" placeholder="所得积分"/>
            </Form-item>
            <Form-item label="用户编号" prop="userid">
                <i-input v-model="incomecointask.userid" placeholder="用户编号"/>
            </Form-item>
            <Form-item label="用户昵称" prop="username">
                <i-input v-model="incomecointask.username" placeholder="用户昵称"/>
            </Form-item>
            <Form-item label="类型" prop="type">
                <i-select v-model="incomecointask.type">
                    <i-option value="1">每日签到</i-option>
                    <i-option value="10">发帖</i-option>
                    <i-option value="15">评论</i-option>
                    <i-option value="20">点赞</i-option>
                    <i-option value="40">跑步打卡分享</i-option>
                    <i-option value="41">精选内容</i-option>
                </i-select>
            </Form-item>
            <Form-item label="创建日期" prop="createdat">
                <i-input v-model="incomecointask.createdat" placeholder="创建日期"/>
            </Form-item>

            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/income/incomecointask.js?_${date.systemTime}"></script>
</body>
</html>